/**
 * Copyright (C), 2002-2017, 上海巧房信息技术有限公司
 * FileName: SaveCollectRuleDTO
 * Author:   yi.li
 * Date:     2018/6/29 17:42
 * Description: 保存采集规则DTO
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.qiaofang.collectmanage.stub.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;

@ApiModel(value = "保存采集规则DTO对象")
public class SaveCollectRuleDTO {

    @ApiModelProperty(value = "城市")
    @NotBlank(message = "城市 不能为空")
    private String city;

    @ApiModelProperty(value = "采集网站")
    @NotBlank(message = "采集网站 不能为空")
    private String source;

    @ApiModelProperty(value = "归属人")
    @NotBlank(message = "归属人 不能为空")
    private String belonger;

    @ApiModelProperty(value = "房屋类型")
    @NotBlank(message = "房屋类型 不能为空")
    private String collectHouseType;

    @ApiModelProperty(value = "出租、出售、求租、求购")
    @NotBlank(message = "采集类型 不能为空")
    private String collectType;

    @ApiModelProperty(value = "采集URL")
    @NotBlank(message = "采集URL 不能为空")
    private String website;

    @ApiModelProperty(value = "列表页编码")
    @NotBlank(message = "列表页编码 不能为空")
    private String listWebCode;

    @ApiModelProperty(value = "详情页编码")
    @NotBlank(message = "详情页编码 不能为空")
    private String detailWebCode;

    @ApiModelProperty(value = "默认采集页数")
    @Min(message = "默认采集页数非法",value = 0)
    private Integer defaultPages;

    @ApiModelProperty(value = "kafka 主题")
    @NotBlank(message = "kafka 主题 不能为空")
    private String topicName;

    @ApiModelProperty(value = "创建人")
    private Long createdUserId;

    @ApiModelProperty(value = "更新人")
    private Long updatedUserId;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;


    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getBelonger() {
        return belonger;
    }

    public void setBelonger(String belonger) {
        this.belonger = belonger;
    }



    public String getCollectType() {
        return collectType;
    }

    public void setCollectType(String collectType) {
        this.collectType = collectType;
    }



    public String getListWebCode() {
        return listWebCode;
    }

    public void setListWebCode(String listWebCode) {
        this.listWebCode = listWebCode;
    }

    public String getDetailWebCode() {
        return detailWebCode;
    }

    public void setDetailWebCode(String detailWebCode) {
        this.detailWebCode = detailWebCode;
    }

    public Integer getDefaultPages() {
        return defaultPages;
    }

    public void setDefaultPages(Integer defaultPages) {
        this.defaultPages = defaultPages;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getCollectHouseType() {
        return collectHouseType;
    }

    public void setCollectHouseType(String collectHouseType) {
        this.collectHouseType = collectHouseType;
    }

    public Long getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Long createdUserId) {
        this.createdUserId = createdUserId;
    }

    public Long getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Long updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "SaveCollectRuleDTO{" +
                "city='" + city + '\'' +
                ", source='" + source + '\'' +
                ", belonger='" + belonger + '\'' +
                ", collectHouseType='" + collectHouseType + '\'' +
                ", collectType='" + collectType + '\'' +
                ", website='" + website + '\'' +
                ", listWebCode='" + listWebCode + '\'' +
                ", detailWebCode='" + detailWebCode + '\'' +
                ", defaultPages=" + defaultPages +
                ", topicName='" + topicName + '\'' +
                ", createdUserId=" + createdUserId +
                ", updatedUserId=" + updatedUserId +
                ", deleted=" + deleted +
                '}';
    }
}
